package com.group4.generator;

import com.group4.rbac.mapper.UserMapper;
import com.group4.rbac.service.UserService;
import com.group4.rbac.util.Audience;
import com.group4.rbac.util.JwtUtil;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import java.text.ParseException;
import java.util.Date;
/**
 * @author
 * @since 2018/12/13
 */
@Slf4j
public class CodeGenerator {
    @Autowired
    private UserMapper userMapper;
    @Autowired
    private UserService userService;
    @Resource
    private Audience audience;

    @Test
    public void run() {

    }
    @Test
    public void testLogin(){
    String a = "hello";
    String b = "hello";
        System.out.println("hash值："+a.hashCode()+"***"+b.hashCode()+"****"+a.equals(b));

    }
    @Test
    public void test2() throws ParseException {
    Date date = new Date();
        System.out.println(date.getTime());
        System.out.println(date);

    }

    @Test
    public void test3(){
     Integer i = 100;
     Integer a = 100;
     Integer b = new Integer(100);
     Integer c = new Integer(100);
        System.out.println(i == a);
//     int j = 188;
//        System.out.println(i==b);

    }


}
